<template>
  <view class="index">
    <button @click="onExample(1)">示例1 基础使用</button>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: 'Hello'
    }
  },
  onLoad() {},
  methods: {
    onExample(index) {
      uni.navigateTo({
        url: `/pages/example${index}/example${index}`
      })
    }
  }
}
</script>

<style lang="scss">
.index {
  padding: 10px;
}
</style>
